package com.kaiwukj.android.ufamily.utils;

public class ZghlHelper {
}/* extends com.zghl.mclient.c.f {

    public void upload(final String filePath, String fileName, String token, final ZghlStateListener var2) {
        com.zghl.mclient.c.f classF = new com.zghl.mclient.c.f();
        classF.a(new com.zghl.mclient.c.a(new ZghlStateListener() {
            public void onSuccess(int var1x, String var2x) {
                //QiNiuToken var3 = (QiNiuToken) NetDataFormat.getDataByT(QiNiuToken.class, var2x);
                if (token != null) {
                    File var4 = new File(filePath);
                    String var5 = var4.getName();
                    String var6 = var5.split("\\.")[0];
                    File var7 = new File(filePath.replace(var6, fileName));
                    var4.renameTo(var7);
                    com.zghl.mclient.d.a.a().a(var7.getPath(), fileName, token, new c() {
                        public void a(String var1x, ResponseInfo var2x, JSONObject var3) {
                            if (var2x.isOK()) {
                                register(var1x, var2);
                            } else {
                                String var4 = "qiniu upload unknow error ";
                                if (var2x != null) {
                                    var4 = var2x.toString() + " ";
                                }

                                if (var3 != null) {
                                    var4 = var4 + var3.toString();
                                }

                                if (var2 != null) {
                                    var2.onError(var2x.statusCode, var4);
                                }
                            }

                        }
                    });
                } else if (var2 != null) {
                    var2.onError(var1x, "DATA_ERROR");
                }

            }

            public void onError(int var1x, String var2x) {
                if (var2 != null) {
                    var2.onError(var1x, var2x);
                }

            }
        }));
    }

    private void register(String var1, final ZghlStateListener var2) {
        HashMap var3 = new HashMap();
        var3.put("face_image", var1);
        com.zghl.mclient.a.a.a().b("faceRegister2", e.D, var3, new com.zghl.mclient.c.a(new ZghlStateListener() {
            public void onSuccess(int var1, String var2x) {
                a(true);
                if (var2 != null) {
                    var2.onSuccess(var1, var2x);
                }

            }

            public void onError(int var1, String var2x) {
                if (var2 != null) {
                    var2.onError(var1, var2x);
                }

            }
        }));
    }
}
*/